package my.graduation.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import my.graduation.entity.Doctor;

/**
 * @Author: RavenLyn
 * @Date: 2024-12-11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DoctorVO {
    private Integer id;

    private String name;

    private String username;

    private Integer gender;

    private Integer title;

    private String researchField;

    private Integer departmentId;

    private String departmentName;

    private Integer clinicId;

    private String clinicName;

    private String phone;

    private String avatar;

    public DoctorVO(Doctor doctor, String departmentName, String clinicName) {
        this.id = doctor.getId();
        this.name = doctor.getName();
        this.username = doctor.getUsername();
        this.gender = doctor.getGender();
        this.title = doctor.getTitle();
        this.researchField = doctor.getResearchField();
        this.departmentId = doctor.getDepartmentId();
        this.departmentName = departmentName;
        this.clinicId = doctor.getClinicId();
        this.clinicName = clinicName;
        this.phone = doctor.getPhone();
        this.avatar = doctor.getAvatar();
    }
}
